﻿using System;
using Models;


namespace Apr_29
{
    class Program
    {
        static void Main(string[] args)
        {
            Time();
            //Stu();

            Console.ReadKey();
        }

        public static void Time()
        {
            int x = 1;
            int y = 20;
            int z = 30; ;
            Time minus = new Time(x, y);
            //Time minus = new Time(x, y, z);
            //Time minus = new Time();
            //minus.Hour = DateTime.Now.Hour;
            //minus.Minute = DateTime.Now.Minute;
            //minus.Second = DateTime.Now.Second;
            Console.WriteLine($"当前时间：{minus.Hour}:{minus.Minute}:{minus.Second}");
            Console.WriteLine($"距零时过去了{minus.TimePeriod()}秒");
        }

        public static void Stu()
        {
            Student stu1 = new Student();
            stu1.Id = "20200318211";
            stu1.Name = "zhy";
            stu1.ClassName = "20外包3";
            Console.WriteLine("请输入分数1");
            stu1.Score1 = double.Parse(Console.ReadLine());
            Console.WriteLine("请输入分数2");
            stu1.Score2 = double.Parse(Console.ReadLine());
            stu1.DispStu();

            Console.WriteLine();

            Student stu2 = new Student();
            stu2.Id = "20200318211";
            stu2.Name = "5454313";
            stu2.ClassName = "20外包3";
            Console.WriteLine("请输入分数1");
            stu2.Score1 = double.Parse(Console.ReadLine());
            Console.WriteLine("请输入分数2");
            stu2.Score2 = double.Parse(Console.ReadLine());
            stu2.DispStu();
        }


    }


}
